#pragma once

#include "Include.h"
#include "Definitions.h"
#include "Singleton.h"

const String DEFAULT_ERROR_MESSAGE = "An unknown error has occured!";
const String ERROR_MESSAGE_TITLE   = "Error";

class Error : public Singleton<Error>
{
public:
	CONSTRUCTOR Error();
	DESTRUCTOR ~Error();

	void ClearMessage();
	void SetMessage(const String& message);

	String GetMessage() const;

	void DisplayMessage(HWND Window = NULL) const;
	void DisplayMessageIfSet(HWND Window = NULL) const;

protected:
	bool mMessageSet;
	String mMessage;
};